package com.yenlien.traceyun.plant.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.yenlien.traceyun.common.utils.Tools;
import com.yenlien.traceyun.plant.utils.ListImgConverter;
import com.yenlien.traceyun.webase.entity.BaseEntity;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @Date 2022/8/30
 * @Author jiaLong
 * @Descript 西昌冷库企业
 */
@Entity
@Table(name = "t_cold_storage_comp")
// 使用 EasyExcel
@ContentRowHeight(40)
@HeadRowHeight(20)
@ColumnWidth(15)
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
public class ColdStorageComp extends BaseEntity {

    @ExcelProperty(value = "企业名称")
    private String name;    // 企业名称

    @ExcelProperty(value = "企业名称")
    private String abbreviation;    // 企业简称

    @ColumnWidth(6)
    @ExcelProperty(value = "负责人")
    private String principal;    // 负责人

    @ExcelProperty(value = "负责人联系方式")
    private String phone;    // 负责人联系方式

    @ExcelProperty(value = "企业地址")
    private String address; // 企业地址

    @ExcelProperty(value = "企业照片", converter = ListImgConverter.class)
    private String logo;    // 企业照片, 多个用 ; 隔开

    private String compType;    // 水果 或者 农资

    private String coldImg;     // 冷库图片


    private String coldIntroduce;       // 冷库介绍

    private String securityService;     // 安防服务

    private String infoService;     // 信息化服务

    private String devService;     // 冷库设施服务

    private String jyxk;            // 经营许可图片 多个用 ; 隔开

    @Transient
    private String password;            // 密码
    @Transient
    private String makeSurePassword;            // 确认密码


    @ExcelIgnore
    private String businessLicense;    // 营业执照图片, 多个用 ; 隔开
    @ExcelIgnore
    private String introduce;    // 企业介绍
    @ExcelIgnore
    private String createTime = Tools.getCurrentTime();  // 添加时间 yyyy-mm-dd
    @ExcelIgnore
    private String state;   // 状态 1=启用,  2=禁用
    @ExcelIgnore
    private String coordinate;            //坐标
    @ExcelIgnore
    private String isManage;    // 1=是西昌冷链后台系统管理员, 2=不是西仓冷链管理员

    @ExcelIgnore
    @Transient
    private String coldStorageArea;
    @ExcelIgnore
    @Transient
    private String coldStorageNum;


    public String getCompType() {
        return compType;
    }

    public String getJyxk() {
        return jyxk;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getColdImg() {
        return coldImg;
    }

    public void setColdImg(String coldImg) {
        this.coldImg = coldImg;
    }

    public String getMakeSurePassword() {
        return makeSurePassword;
    }

    public void setMakeSurePassword(String makeSurePassword) {
        this.makeSurePassword = makeSurePassword;
    }

    public void setJyxk(String jyxk) {
        this.jyxk = jyxk;
    }

    public void setCompType(String compType) {
        this.compType = compType;
    }

    public String getColdStorageArea() {
        return coldStorageArea;
    }

    public void setColdStorageArea(String coldStorageArea) {
        this.coldStorageArea = coldStorageArea;
    }

    public String getColdStorageNum() {
        return coldStorageNum;
    }

    public void setColdStorageNum(String coldStorageNum) {
        this.coldStorageNum = coldStorageNum;
    }

    public String getColdIntroduce() {
        return coldIntroduce;
    }

    public void setColdIntroduce(String coldIntroduce) {
        this.coldIntroduce = coldIntroduce;
    }

    public String getSecurityService() {
        return securityService;
    }

    public void setSecurityService(String securityService) {
        this.securityService = securityService;
    }

    public String getInfoService() {
        return infoService;
    }

    public void setInfoService(String infoService) {
        this.infoService = infoService;
    }

    public String getDevService() {
        return devService;
    }

    public void setDevService(String devService) {
        this.devService = devService;
    }

    public String getIsManage() {
        return isManage;
    }
    public void setIsManage(String isManage) {
        this.isManage = isManage;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getAbbreviation() {
        return abbreviation;
    }

    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getBusinessLicense() {
        return businessLicense;
    }

    public void setBusinessLicense(String businessLicense) {
        this.businessLicense = businessLicense;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
